home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_VID / BUGS.ZIP;1 / BUGS.DOC next >
Encoding:
Text File  |  1992-09-21  |  6.2 KB  |  111 lines

  1. BUGS.SCR (Version 1.0)                 Copyright (c) 1992 Douglas Boling
  2. ------------------------------------------------------------------------
  3.               First Published in PC Magazine October 13, 1992 (Utilities)
  4. ------------------------------------------------------------------------
  5.  
  6. BUGS & BUGSBC:
  7.  
  8.               BUGS is a Windows 3.1 screen saver utility that creates
  9. voracious "bugs" that gradually eat away the display on your screen when
  10. your monitor stays idle for more than a few minutes. 
  11.  
  12. BUGS souce code should be compiled with the Windows SDK (Software Development
  13. Kit) and Microsoft C 6.0. This version includes a password protection option.
  14. To compile using C 6.0, the command is
  15.  
  16. NMAKE BUGSMSC.MAK
  17.  
  18. BUGSBC does not include a password option but can be compiled using the
  19. screen saver routines in PCSCRLIB.C and Borland's C++, 3.0.
  20. To compile with C++ 3.0, enter
  21.  
  22. MAKE -f BUGSBC.MAK
  23.  
  24. As with other screen savers, you can instantly restore your normal display
  25. with any keystroke or mouse movement. Note that since it takes a little time
  26. before BUGS covers the display entirely, you'll want to use a different screen
  27. saver if you need instant blanking for security reasons.
  28.  
  29. BREEDING BUGS
  30.  
  31.      To install the program, just copy BUGS.SCR into your Windows directory
  32. (or into the directory that contains CONTROL.EXE).  To select BUGS as your
  33. screen saver, open the Control Panel and double-click on the Desktop.  Pull
  34. down the Screen Saver combo box that contains the list of screen savers
  35. installed on your machine and pick the one titled Hungry Bugs.
  36.  
  37.     Like the other Windows 3.1 screen savers, BUGS can be configured and
  38. tested from the Desktop configuration dialog box.  By pressing the Screen
  39. Saver Setup button, you can modify the basic parameters that affect the
  40. life of a typical bug. The OK and Cancel buttons close the dialog box, with
  41. only OK saving the changes you have made.
  42.  
  43.       A short course in basic bug biology will help you understand the
  44. configuration options. Each pixel has a specific nutritional value based
  45. on its color. If a bug ingests a bright red pixel, for example, it takes
  46. in 255 calories, since the pixel has an RGB value of Red 255 + Green
  47. 0 + Blue 0.  The calorie count for a white pixel is 765 (RGB = 255 + 255 +
  48. 255).  To add a touch of variety, the three sliders in the nutrition level
  49. section of the Setup dialog box let you vary the relative nutritional values
  50. of the different colors.
  51.  
  52.     When a bug eats a pixel, the pixel turns black and the bug moves on,
  53. seeking further nourishment.  Movement requires energy, however, so each
  54. time a bug moves, a sustenance value is subtracted from that bug's caloric
  55. reserve. Thus, if you set the sustenance value to 64, 64 calories will be
  56. subtracted from a bug's energy stock each time the bug makes a turn. 
  57. Naturally, if the value of a bug's food units falls below zero, it dies
  58. of starvation.  Setting a high sustenance value causes bugs to starve
  59. quickly after they are born, while reducing this value permits bugs to
  60. survive on very few dimly colored pixels.
  61.  
  62.      When a bug eats enough pixels to reach the reproduction level set by
  63. the user, a new bug is born automatically.  By setting this level low you
  64. can cause something of a population explosion; setting a high level as a
  65. requirement for reproduction will keep only a select few bugs wandering
  66. the screen.  Each newborn bug has enough calories to sustain itself for
  67. at least a few turns before it finds any food.  The birth of the baby
  68. reduces its parent's food reserve by half.
  69.  
  70.      When BUGS starts, one bug is generated at a random location on the
  71. screen.  This bug immediately begins to eat away at the display and quickly
  72. reaches its reproduction level, whereupon it reproduces.  The second bug
  73. acts just like the first, eating pixels and giving birth to other bugs.
  74. Within a second, anywhere from tens to hundreds of bugs will have been
  75. spawned in the vicinity of the initial insect.
  76.  
  77.      To inject a touch of biospheric variety, some bugs have slightly
  78. different tasks. Thus, 10 percent of the bugs are programmed to be best
  79. at finding bright pixels.  These bugs serve as scouts.  Scout bugs don't
  80. wander randomly, but tend rather to move in the direction that provides
  81. the best food.  If moving up the screen provides a scout bug with a good 
  82. meal, its next move will more than likely be up.  These scout bugs help
  83. prevent a boring herd of bugs clustering around the initial bug.
  84.  
  85.      Calculating the next move for hundreds of bugs is a time-consuming task,
  86. so the Setup box lets you limit the maximum number of bugs.  A fast 486 with a
  87. graphics accelerator card can support up to 1,000 bugs without trouble.  For
  88. slower machines, 200 or 300 bugs is the recommended maximum.  BUGS will still
  89. work if you set the limit higher, but the program will slow down.
  90.  
  91.      As a final customization option, color boxes can be checked that show you
  92. how the bugs are performing.  When you enable colorization for new baby bugs,
  93. they show up as green pixels.  When you enable colorization for dead bugs,
  94. they are shown as red pixels.
  95.  
  96.      Modifying the sustenance and reproduction level controls can easily
  97. produce excessive results.  Since it's possible to create an environment in
  98. which all the bugs starve before reproducing, or, conversely, to bog down
  99. the program by overpopulation, BUGS contains two checks on the environment. 
  100. If all the bugs die off, a new seed bug is randomly placed somewhere on the
  101. screen.  This repopulation allows the program to blank the screen eventually
  102. no matter what parameters you set.  When repopulation takes place, the
  103. sustenance value is automatically lowered by 10 percent, making the new bugs
  104. tougher than their recently deceased predecessors.
  105.  
  106.      To curb overpopulation, the ranks of the bugs are culled if their number
  107. rises to within 80 percent of the maximum number of bugs allowed.  (After all,
  108. in an overpopulated environment, predators will soon learn about such a rich
  109. food source.)  Trimming the bug population takes place every 15 seconds, with
  110. the least productive 20 percent of the bugs being killed off.
  111.  
  112. --------------------------------------------------------------------------
  113. DOUGLAS BOLING IS A CONTRIBUTING EDITOR TO PC MAGAZINE.
  114.